package com.aruba.dept.service.impl;

import com.aruba.api.DubboDeptService;
import com.aruba.bean.Dept;
import com.aruba.dept.service.DeptService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImp implements DeptService {

    @DubboReference
    private DubboDeptService dubboDeptService;

    @Override
    public List<Dept> findAllDept() {
        return dubboDeptService.findAllDept();
    }

}
